package com.glory.huaweipda.viewmodel

import com.glory.huaweipda.model.TaskRepository
import com.glory.mvvmnet.base.BaseViewModel
import java.util.*

class BatchTrackOutModel : BaseViewModel() {


    private val repository by lazy { TaskRepository() }
    var areaArrayList = ArrayList<String>()

    fun defaultGetAreaList() {
        launchOnlyResult({
            areaArrayList.clear()
            val defaultGetAreaList =
                repository.defaultGetAreaList()
            areaArrayList.addAll(defaultGetAreaList)
            defUI.callObserve.call()
        })
    }

}